package com.didispace;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;

/**
 * Feign：默认依赖(引入)短路器Hystrix
 *
 *        短路器：Hystrix
 *        1、故障发现器更好些！即它能发现不能用的服务，并按指定的策略给出提示，而非让程序一直阻塞等待；
 *        2、就是预先设置好失败时的fallBack页面即提示；
 *
 * Created by BG294913 on 2017/9/25.
 */

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients //使用FeignClient客户端
public class FeignApplication {

    public static void main(String[] args) {
        SpringApplication.run(FeignApplication.class,args);
    }

}
